public class JuXingTest {
    public static void main(String[] args) {
        // 方式一：空参构造创建对象，set 方法赋值
        JuXing juxing1 = new JuXing();
        juxing1.setLength(8);
        juxing1.setWidth(6);
        juxing1.area();
        juxing1.size();

        System.out.println();

        // 方式二：全参构造直接创建对象
        JuXing juxing2 = new JuXing(8, 6);
        juxing2.area();
        juxing2.size();
    }
}